package com.hycreate.platform.modules.atta;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hycreate.platform.common.persistence.Page;
import com.hycreate.platform.common.service.CrudService;
import com.hycreate.platform.modules.atta.SfAttachment;
import com.hycreate.platform.modules.atta.SfAttachmentDao;

/**
 * 附件Service
 * @author hoader
 * @version 2017-01-10
 */
@Service
@Transactional(readOnly = true)
public class SfAttachmentService extends CrudService<SfAttachmentDao, SfAttachment> {

	public SfAttachment get(String id) {
		return super.get(id);
	}
	
	public List<SfAttachment> findList(SfAttachment sfAttachment) {
		return super.findList(sfAttachment);
	}
	
	public Page<SfAttachment> findPage(Page<SfAttachment> page, SfAttachment sfAttachment) {
		return super.findPage(page, sfAttachment);
	}
	
	@Transactional(readOnly = false)
	public void save(SfAttachment sfAttachment) {
		super.save(sfAttachment);
	}
	
	@Transactional(readOnly = false)
	public void delete(SfAttachment sfAttachment) {
		super.delete(sfAttachment);
	}
	
}